# Makefile for libfmm
#  Written by Mark A. Watson
#
include ../makeconfig

objects = \
fmm_global_types.o\
fmm_global_consts.o\
fmm_utils.o\
fmm_sort.o\
fmm_stats.o\
fmm_qlm_utils.o\
fmm_aux_qlm_builder.o\
fmm_qlm_builder.o\
fmm_box_utils.o\
fmm_boundary.o\
fmm_box_packer.o\
fmm_W_worker.o\
fmm_W_contractors.o\
fmm_tree_buffer.o\
fmm_W_buffer.o\
fmm_W_pair_builder.o\
fmm_box_builder.o\
fmm_multi_T_buffer.o\
fmm_multiple_T_worker.o\
fmm_proc_selector.o\
fmm_scale_T_buffer.o\
fmm_scheme.o\
fmm_T_worker.o\
fmm_T_contractors.o\
fmm_T_buffer.o\
fmm_T_pair_mould.o\
fmm_T_pair_tests.o\
fmm_local_search.o\
fmm_T_pair_builder.o\
fmm_Vff_driver.o\
fmm_J_builder.o\
fmm_main.o

all: objcomp

objcomp : $(objects)
	$(RM) libfmm.a
	$(AR) $(ARFLAGS) libfmm.a $(objects)
	$(RANLIB) libfmm.a

clean :
	$(RM) *.o *.mod *.a

veryclean :
	$(RM) *.o *.mod *.a

.SUFFIXES:.f
.f.o: 
	$(F77) $(F77FLAGS) -c $<
.SUFFIXES:.f90
.f90.o: 
	$(F90) $(F90FLAGS) -c $<

